<?php
class Pageley_Commerce_Domain_OrderStatusAfterCancel extends Pageley_Commerce_Domain_OrderStatus {
	public function tryCancel() {
		throw new Pageley_Domain_Exception(
			new Pageley_I18n_Message("error.commerce.cancelAfterCancel"));
	}
	
	public function tryAdd() {
		throw new Pageley_Domain_Exception(
			new Pageley_I18n_Message("error.commerce.addToOrderAfterCancel"));
	}
	
	public function tryRemove() {
		throw new Pageley_Domain_Exception(
			new Pageley_I18n_Message("error.commerce.removeFromOrderAfterCancel"));
	}
	
	public function tryPlace() {
		throw new Pageley_Domain_Exception(
			new Pageley_I18n_Message("error.commerce.placeAfterCancel"));
	}
}

Pageley_Commerce_Domain_OrderStatus::$CANCELLED = new Pageley_Commerce_Domain_OrderStatusAfterCancel("CANCELLED");